\(\int \sin ^3(a+b x) \, dx\) [3]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 8, antiderivative size = 27 \[ \int \sin ^3(a+b x) \, dx=-\frac {\cos (a+b x)}{b}+\frac {\cos ^3(a+b x)}{3 b} \]

[Out]

-cos(b*x+a)/b+1/3*cos(b*x+a)^3/b

Rubi [A] (verified)

Time = 0.01 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {2713} \[ \int \sin ^3(a+b x) \, dx=\frac {\cos ^3(a+b x)}{3 b}-\frac {\cos (a+b x)}{b} \]

[In]

Int[Sin[a + b*x]^3,x]

[Out]

-(Cos[a + b*x]/b) + Cos[a + b*x]^3/(3*b)

Rule 2713

Int[sin[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Dist[-d^(-1), Subst[Int[Expand[(1 - x^2)^((n - 1)/2), x], x], x
, Cos[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[(n - 1)/2, 0]

Rubi steps \begin{align*} \text {integral}& = -\frac {\text {Subst}\left (\int \left (1-x^2\right ) \, dx,x,\cos (a+b x)\right )}{b} \\ & = -\frac {\cos (a+b x)}{b}+\frac {\cos ^3(a+b x)}{3 b} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.02 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.07 \[ \int \sin ^3(a+b x) \, dx=-\frac {3 \cos (a+b x)}{4 b}+\frac {\cos (3 (a+b x))}{12 b} \]

[In]

Integrate[Sin[a + b*x]^3,x]

[Out]

(-3*Cos[a + b*x])/(4*b) + Cos[3*(a + b*x)]/(12*b)

Maple [A] (verified)

Time = 0.16 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.81

method result size
derivativedivides \(-\frac {\left (2+\sin ^{2}\left (b x +a \right )\right ) \cos \left (b x +a \right )}{3 b}\) \(22\)
default \(-\frac {\left (2+\sin ^{2}\left (b x +a \right )\right ) \cos \left (b x +a \right )}{3 b}\) \(22\)
parallelrisch \(\frac {-8-9 \cos \left (b x +a \right )+\cos \left (3 b x +3 a \right )}{12 b}\) \(25\)
risch \(-\frac {3 \cos \left (b x +a \right )}{4 b}+\frac {\cos \left (3 b x +3 a \right )}{12 b}\) \(27\)
norman \(\frac {-\frac {4 \left (\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{b}-\frac {4}{3 b}}{\left (1+\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )^{3}}\) \(39\)

[In]

int(sin(b*x+a)^3,x,method=_RETURNVERBOSE)

[Out]

-1/3/b*(2+sin(b*x+a)^2)*cos(b*x+a)

Fricas [A] (verification not implemented)

none

Time = 0.32 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.81 \[ \int \sin ^3(a+b x) \, dx=\frac {\cos \left (b x + a\right )^{3} - 3 \, \cos \left (b x + a\right )}{3 \, b} \]

[In]

integrate(sin(b*x+a)^3,x, algorithm="fricas")

[Out]

1/3*(cos(b*x + a)^3 - 3*cos(b*x + a))/b

Sympy [A] (verification not implemented)

Time = 0.11 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.37 \[ \int \sin ^3(a+b x) \, dx=\begin {cases} - \frac {\sin ^{2}{\left (a + b x \right )} \cos {\left (a + b x \right )}}{b} - \frac {2 \cos ^{3}{\left (a + b x \right )}}{3 b} & \text {for}\: b \neq 0 \\x \sin ^{3}{\left (a \right )} & \text {otherwise} \end {cases} \]

[In]

integrate(sin(b*x+a)**3,x)

[Out]

Piecewise((-sin(a + b*x)**2*cos(a + b*x)/b - 2*cos(a + b*x)**3/(3*b), Ne(b, 0)), (x*sin(a)**3, True))

Maxima [A] (verification not implemented)

none

Time = 0.19 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.81 \[ \int \sin ^3(a+b x) \, dx=\frac {\cos \left (b x + a\right )^{3} - 3 \, \cos \left (b x + a\right )}{3 \, b} \]

[In]

integrate(sin(b*x+a)^3,x, algorithm="maxima")

[Out]

1/3*(cos(b*x + a)^3 - 3*cos(b*x + a))/b

Giac [A] (verification not implemented)

none

Time = 0.31 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.93 \[ \int \sin ^3(a+b x) \, dx=\frac {\cos \left (b x + a\right )^{3}}{3 \, b} - \frac {\cos \left (b x + a\right )}{b} \]

[In]

integrate(sin(b*x+a)^3,x, algorithm="giac")

[Out]

1/3*cos(b*x + a)^3/b - cos(b*x + a)/b

Mupad [B] (verification not implemented)

Time = 0.05 (sec) , antiderivative size = 24, normalized size of antiderivative = 0.89 \[ \int \sin ^3(a+b x) \, dx=-\frac {3\,\cos \left (a+b\,x\right )-{\cos \left (a+b\,x\right )}^3}{3\,b} \]

[In]

int(sin(a + b*x)^3,x)

[Out]

-(3*cos(a + b*x) - cos(a + b*x)^3)/(3*b)